package com.stylefeng.guns.modular.netcar.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.netcar.model.LineDispatchPsn;

import java.util.List;

/**
 * 
 * 线路指派调度员 Mapper 接口 
 * @author 张亚林
 * @Date 2018-10-27 09:52
 */
public interface LineDispatchPsnMapper extends BaseMapper<LineDispatchPsn> {
    /**
     * 删除线路指派调度员
     * @param  lineDispatchPsn
     * @return    
     */
    int deleteLineDispatchPsn(LineDispatchPsn lineDispatchPsn)throws Exception;
    /**
     * 批量线路指派调度员
     * @param ids 主键id数组
     * @return     
     */
    int deleteBatchLineDispatchPsn(String[] ids)throws Exception;
    /**
     * 查询线路指派调度员列表
     * @param lineDispatchPsn 线路指派调度员对象
     * @return      
     */
    List<LineDispatchPsn> selectListLineDispatchPsn(LineDispatchPsn lineDispatchPsn)throws Exception;
    /**
     * 分页查询线路指派调度员列表
     * @param page  分页对象
     * @param lineDispatchPsn 系统操作对象
     * @return
     * @Date 2018-10-02
     */
    List<LineDispatchPsn> selectListLineDispatchPsn(Page page, LineDispatchPsn lineDispatchPsn)throws Exception;


    /**
     * 同一个事务 互斥锁查询
     * @param lineDispatchPsn 系统操作对象
     * @return     
     */
    List<LineDispatchPsn> selectListLineDispatchPsnForUpdate(LineDispatchPsn lineDispatchPsn)throws Exception;
    /**
     * 通过主键ID查询线路指派调度员对象
     * @param id 主键id
     * @return    
     */
    LineDispatchPsn findLineDispatchPsnById(String id)throws Exception;

    /**
     * 插入线路指派调度员
     * @param lineDispatchPsn
     * @return   
     */
    int insertLineDispatchPsn(LineDispatchPsn lineDispatchPsn) throws Exception ;
    /**
     * 更新线路指派调度员
     * @param lineDispatchPsn
     * @return     
     */
    int updateLineDispatchPsn(LineDispatchPsn lineDispatchPsn) throws Exception ;


}
